package com.sws.wx_msg_push.config;

import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;
import org.springframework.scheduling.annotation.EnableScheduling;
import org.springframework.web.client.RestTemplate;

import com.fasterxml.jackson.databind.ObjectMapper;

/**
 * 预约提醒配置类
 */
@Configuration
@EnableScheduling
public class ReservationReminderConfig {
    
    /**
     * 预约提醒专用RestTemplate Bean
     * 使用不同的名称避免与其他RestTemplate冲突
     */
    @Bean("reservationRestTemplate")
    public RestTemplate reservationRestTemplate() {
        return new RestTemplate();
    }
    
    /**
     * 预约提醒专用ObjectMapper Bean
     * 使用不同的名称避免可能的冲突
     */
    @Bean("reservationObjectMapper")
    public ObjectMapper reservationObjectMapper() {
        return new ObjectMapper();
    }
} 